package com.skeeey.aim.service;

import java.util.List;
import java.util.Map;

import com.skeeey.aim.model.AutoRecord;
import com.skeeey.aim.model.Dealer;
import com.skeeey.aim.model.Workload;
import com.skeeey.aim.model.statistics.StatisticRecord;

public interface RecordService {
	void saveOriginalRecords(List<AutoRecord> records);
	
	void updateOriginalRecords(List<AutoRecord> records, String timeStamp);
	
	List<AutoRecord> getAutoRecordsBy(int status, String timeStamp, String dealerCode);
	
	void deletOriginalRecordBy(String recordId);
	
	void updateOriginalRecord(AutoRecord record);
	
	boolean isValidDealer(String dealerCode);
	
	Dealer findDealerBy(String dealerCode);
	
	List<Dealer> getAllDealers();
	
	void saveDealers();
	
	void saveDealersFromFile();
	
	AutoRecord findAutoRecordBy(String dealerCode, String vinCode);
	
	//List<AutoRecord> getAutoRecordsBy(List<String> vinCodes);
	
	StatisticRecord createStatisticRecordBy(Dealer dealer, String timeStamp);
	
	List<AutoRecord> getStatisticRecordsBy(int index, Dealer dealer, String timeStamp);
	
	List<Workload> getWorkloads(String userName, String year, String quarter);
	
	Map<String, Integer> getWorkloads(String year, String quarter);
	
	void saveWorkload(Workload workload);
	
	void deletOriginalRecords(String dealerCode, String timeStamp);
	
	void deletWorkload(String dealerName, String finishDate);
	
//	void saveDealers();
}
